<?php
class Mphongban extends CI_Model{
	
	public function __construct(){
		parent::__construct();
		$this->load->database();
	}
	
	public function listPhongban(){
		$data = $this->input->get('dv_id');
		$this->db->select('pb_id,pb_tenphongban');
		$this->db->where('dv_id',$data);
		$query = $this->db->get('dm_phongban');
		return $query->result_array();
	}
	
}